package com.vvv.designpattern.repo;

import com.vvv.designpattern.pojo.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author vvv
 * @date 2023-11-14 15 11
 * discription
 */
@Repository
public interface UserRepository extends JpaRepository<UserInfo, Integer> {

    UserInfo findByUserName(String userName);

    UserInfo findByUserNameAndUserPassword(String account, String password);
}
